<?php

namespace app\admin\controller;


use support\Request;
use support\View;
use Webman\Config;

class IndexController
{

    //webman-admin 后台插件   http://localhost:8787/app/admin


    // localhost:8787/admin   后台
    public function index() {
        return "后台welcome";
//        return view('index/index', ['name' => 'webman']);
    }


    public function view(Request $request)
    {
        return view('index/view', ['name' => 'webman']);
    }

    public function json(Request $request)
    {
        return json(['code' => 0, 'msg' => 'ok']);
    }

}
